package com.vue.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vue.bean.R;
import com.vue.entity.UserEntity;
import com.vue.entity.po.LoginPO;
import com.vue.entity.po.UserPO;

import java.util.List;

/**
 * UserService继承IService模板提供的基础功能
 * @author: wrj
 * @since: 2023/6/8 17:55
 * @description:
 */
public interface UserService extends IService<UserEntity> {

    /**
     * 登录
     * @param po
     * @return
     */
    R login(LoginPO po);

    List<UserEntity> selectList(UserPO po);

    /**
     * 新增/修改用户
     * @param po
     * @return
     */
    R addOrEditUser(UserEntity po);

    /**
     * 删除用户
     * @param id
     * @return
     */
    R deleteById(Long id);

    /**
     * 查询用户详情
     * @param id
     * @return
     */
    R selectById(Long id);

    R batchInsert(Integer count);

    IPage<UserEntity> selectPage(UserPO po, Integer pageNum, Integer pageSize);
}


